//
//  ImageTestVC.m
//  DealWithImage
//
//  Created by 李明明 on 15/10/13.
//  Copyright © 2015年 李明明. All rights reserved.
//

#import "ImageTestVC.h"
#import "UIImage+Zoom.h"

@interface ImageTestVC ()
@property (nonatomic, weak) IBOutlet UIImageView *firstIMV;
@property (nonatomic, weak) IBOutlet UIImageView *secondIMV;
@property (nonatomic, weak) IBOutlet UIImageView *thirdIMV;
@property (nonatomic, weak) IBOutlet UIImageView *forthIMV;
@end

@implementation ImageTestVC

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.secondIMV.image = [self.firstIMV.image cropImageWithRect:CGRectMake(0, 0, self.firstIMV.image.size.width / 2, self.firstIMV.image.size.height / 2)];
    self.thirdIMV.image = [self.firstIMV.image imageRotate:3.14 / 4];
    self.forthIMV.image = [self.firstIMV.image filterWithName:@"CIColorControls"];
    // 改变旋转方向
    self.forthIMV.image = [UIImage imageWithCGImage:self.forthIMV.image.CGImage scale:1 orientation:UIImageOrientationLeft];
    self.thirdIMV.layer.borderColor = [UIColor blackColor].CGColor;
    
    
}



@end
